<template>
	<view class="wrap">
		<u-form class="form" :model="model" ref="uForm" label-position="left">
			<u-form-item label="标题" prop="title" label-width="180">
				<u-input v-model="model.title" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="类型" prop="logType" label-width="180">
				<u-input  v-model="model.logType" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="ip地址" prop="remoteAddr" label-width="180">
				<u-input v-model="model.remoteAddr" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="请求方式" prop="method" label-width="180">
				<u-input v-model="model.method" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="客户端" prop="serviceId" label-width="180">
				<u-input v-model="model.serviceId" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="请求时间" prop="time" label-width="180">
				<u-input v-model="model.time" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
			<u-form-item label="创建时间" prop="createTime" label-width="180">
				<u-input v-model="model.createTime" type="text" maxlength="64" :disabled="true"></u-input>
			</u-form-item>
		</u-form>

		<view class="form-footer">
			<u-button class="btn" type="default" @click="cancel">关闭</u-button>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				model: {}
			};
		},
		onLoad(params) {
			Object.assign(this.model, JSON.parse(params.logInfo));
			
			this.model = JSON.parse(params.logInfo)
		},
		methods: {
			cancel() {
				uni.navigateBack();
			}
		}
	};
</script>
<style lang="scss">

</style>
